package com.sevenmall.productservice.controller;


import com.sevenmall.productservice.pojo.Product;
import com.sevenmall.productservice.service.BrandService;
import com.sevenmall.productservice.service.ParameterService;
import com.sevenmall.productservice.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 商品表 前端控制器
 * </p>
 *
 * @author Yesi
 * @since 2020-08-24
 */
@RestController
@RequestMapping("/product")
public class ProductController {
    @Autowired
    ProductService productService;
    @Autowired
    BrandService brandService;

    @GetMapping("test")
    public Product test() {
        Product product = productService.getById(1);
        System.out.println(product);
        return product;
    }
}
